/**
 *
 */
package com.itee.core.serial;

import org.apache.mina.transport.serial.SerialAddress.DataBits;
import org.apache.mina.transport.serial.SerialAddress.FlowControl;
import org.apache.mina.transport.serial.SerialAddress.Parity;
import org.apache.mina.transport.serial.SerialAddress.StopBits;

/**
 * 串口参数
 *
 * @author xin
 */
public class SerialParam {

    private String name;
    private int bauds = 9600;
    private DataBits dataBits = DataBits.DATABITS_8;
    private StopBits stopBits = StopBits.BITS_1;
    private Parity parity = Parity.NONE;
    private FlowControl flowControl = FlowControl.NONE;

    /**
     *
     */
    public SerialParam() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBauds() {
        return bauds;
    }

    public void setBauds(int bauds) {
        this.bauds = bauds;
    }

    public DataBits getDataBits() {
        return dataBits;
    }

    public void setDataBits(DataBits dataBits) {
        this.dataBits = dataBits;
    }

    public StopBits getStopBits() {
        return stopBits;
    }

    public void setStopBits(StopBits stopBits) {
        this.stopBits = stopBits;
    }

    public Parity getParity() {
        return parity;
    }

    public void setParity(Parity parity) {
        this.parity = parity;
    }

    public FlowControl getFlowControl() {
        return flowControl;
    }

    public void setFlowControl(FlowControl flowControl) {
        this.flowControl = flowControl;
    }
}
